<?php
if(!isset($_SESSION)){
session_start();
}

$filname=basename($_SERVER['PHP_SELF']);
if($filname!="login.php"&&$filname!="index.php"){
if(isset($_SESSION['logged'])==false or $_SESSION['logged']!=true){
   // echo "<meta http-equiv='refresh' content='1; URL=http://127.0.0.1:8888/ConsoleAdmin/home/login.php'  >";
    //echo "<div align=center> <h1>Merci de vous logger</h1></div>";
     header("location: //127.0.0.1:8888/ConsoleAdmin/home/login.php");
    exit;
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
                <meta http-equiv="Content-Type" content="text/html" charset="UTF-8"/>
                <meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1, initial-scale=1.0, user-scalable=no"/>
                <base href="."/>
                
                <title>Admin Rilke</title>
                
                <link rel="shortcut icon" href="../pictures/app_icon.png" type="image/png" />
                <link rel="apple-touch-icon" href="../pictures/app_icon.png"/>
                <link rel="apple-touch-icon-precomposed" href="../pictures/app_icon.png"/>
                <link rel="apple-touch-startup-image" href="../pictures/startup_screen.png"/>
                
                <meta name="apple-mobile-web-app-capable" content="yes"/>
                <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
                
                <link rel="stylesheet" href="../style/jquery.mobile-1.0a1.min.css"/>
                <link rel="stylesheet" href="../style/admin.css"/>
                <link rel="stylesheet" type="text/css" href="../style/view.css" media="all"/>
                <script type="text/javascript" src="../style/view.js"></script>
                <script type="text/javascript" src="../style/calendar.js"></script>
                <script src="http://code.jquery.com/jquery-latest.js"></script>
                <script type="text/javascript" src="../index.js">
                </script>
                
                <!-- Kwicks -->
                <script src="../js/jquery-1.2.6.min.js" type="text/javascript"></script>
                <script src="../js/jquery.easing.1.3.js" type="text/javascript"></script>
                <script src="../js/jquery.kwicks-1.5.1.pack.js" type="text/javascript"></script>
                <script type="text/javascript">
                        $().ready(function() {
                                $('.kwicks').kwicks({
                                        duration: 500,
                                        max : 250,
                                        spacing : 3
                                });
                        });
                </script>

</head>
<body>
        <!-- Header -->  
        <div data-position="inline" data-nobackbtn="true" role="banner">
            <h2 class="mainTitle" >Console d'Administration <?php if(isset($_SESSION['logged'])&&$_SESSION['logged']==true)echo "<a style='background-color:#efefef;font-size:small;' href=/ConsoleAdmin/Home/logout.php>Logout</a>" ?></h2>
        </div>
        <table>
            <tr>
                <td>
                    <div class="block">
                    </div>
                </td>
                                        
                <td>
                    <div>                           
                        <ul class="kwicks horizontal">
                            <li id="kwick_Accueil">
                                <div id="buttonAdmin" class="menuButtons">
                                    <p class="buttonTitle"><h3>Accueil<h3></p>
                                </div>
                            </li>
                            <li id="kwick_Parametres">
                                <div id="buttonParameters" class="menuButtons">
                                    <p class="buttonTitle"><h3>Paramètres<h3></p>
                                </div>
                            </li>
                            <li id="kwick_events">
                                <div id="buttonEvents" class="menuButtons">
                                    <p class="buttonTitle"><h3>Evénements<h3></p>
                                </div>
                            </li>
                            <li id="kwick_oeuvres">
                               <div id="buttonOeuvres" class="menuButtons">
                                    <p class="buttonTitle"><h3>Oeuvres<h3></p>
                                </div>
                            </li>
                            <li id="kwick_media">
                                <div id="buttonMedia" class="menuButtons">
                                    <p class="buttonTitle"><h3>Médias<h3></p>
                                </div>
                            </li>
                            <li id="kwick_concours">
                                <div id="buttonConcours" class="menuButtons">
                                    <p class="buttonTitle"><h3>Concours<h3></p>
                                </div>
                            </li>
                        </ul>
                    </div>  
                </td>
            </tr>
        </table>
        </br>
        </br>
